FROM java:8
MAINTAINER ylb

ARG NAME
ARG VERSION
ARG JAR_FILE

LABEL name=$NAME \
      version=$VERSION

ADD target/${JAR_FILE} /opt/app.jar
VOLUME ["/home/","/home/"]

ENTRYPOINT ["java","-jar","/opt/app.jar"]

EXPOSE 8080